/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class AromatherapyMachine {
    static categoryCode = '010030009';

    static categoryName = '香薰机';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return AromatherapyMachine.categoryCode;
    }

    get categoryName() {
        return AromatherapyMachine.categoryName;
    }

    getBacklightBrightness(params) {
        return command({
            method: 'getBacklightBrightness',
            methodId: 'pNnZEPiw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLightMode(params) {
        return command({
            method: 'getLightMode',
            methodId: 'pj7xBm2P',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLightSwitch(params) {
        return command({
            method: 'getLightSwitch',
            methodId: 'pXZu759m',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainingTime(params) {
        return command({
            method: 'getRemainingTime',
            methodId: 'Unfcbf4A',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSleepMode(params) {
        return command({
            method: 'getSleepMode',
            methodId: 'UmaS3Obr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSprayMode(params) {
        return command({
            method: 'getSprayMode',
            methodId: 'pBTQtlm5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSpraySwitch(params) {
        return command({
            method: 'getSpraySwitch',
            methodId: 'pkp1q41M',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSprayVolume(params) {
        return command({
            method: 'getSprayVolume',
            methodId: 'pz93i03K',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSprayVolumePercentage(params) {
        return command({
            method: 'getSprayVolumePercentage',
            methodId: 'p0crOgrl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSterilizationSwitch(params) {
        return command({
            method: 'getSterilizationSwitch',
            methodId: 'pWG01UBC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'p3deouen',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWarningToneSwitch(params) {
        return command({
            method: 'getWarningToneSwitch',
            methodId: 'pqYhWwtU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBacklightBrightness(params) {
        return command({
            method: 'setBacklightBrightness',
            methodId: 'pDrhFbgW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLightMode(params) {
        return command({
            method: 'setLightMode',
            methodId: 'p1vFjxUR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLightSwitch(params) {
        return command({
            method: 'setLightSwitch',
            methodId: 'pGoxHGLo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSleepMode(params) {
        return command({
            method: 'setSleepMode',
            methodId: 'pdN7zs79',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSprayMode(params) {
        return command({
            method: 'setSprayMode',
            methodId: 'ptRS9DOE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSpraySwitch(params) {
        return command({
            method: 'setSpraySwitch',
            methodId: 'ppAXIOMq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSprayVolume(params) {
        return command({
            method: 'setSprayVolume',
            methodId: 'pUPQ8jWk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSprayVolumePercentage(params) {
        return command({
            method: 'setSprayVolumePercentage',
            methodId: 'pZgRT3b1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSterilizationSwitch(params) {
        return command({
            method: 'setSterilizationSwitch',
            methodId: 'phEqKkNI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3nftb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWarningToneSwitch(params) {
        return command({
            method: 'setWarningToneSwitch',
            methodId: 'pgh0mqYz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default AromatherapyMachine;
